package com.gsoe.problem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gsoe.base.model.PageResult;
import com.gsoe.problem.dto.CreatExamByRandomDTO;
import com.gsoe.problem.dto.ExamDTO;
import com.gsoe.problem.dto.SaveExamDTO;
import com.gsoe.problem.dto.TeacherCommentDTO;
import com.gsoe.problem.po.Exam;
import com.gsoe.problem.vo.ExamAdminVO;
import com.gsoe.problem.vo.ExamVO;
import com.gsoe.problem.vo.NeedPeopleProblemVO;

import java.util.List;


/**
 * <p>
 * 考试表 服务类
 * </p>
 *
 * @author xiaoma
 * @since 2024-10-27
 */
public interface ExamService extends IService<Exam> {

    PageResult<ExamVO> getExamList(ExamDTO dto);

    PageResult<ExamAdminVO> getExamAdminList(ExamDTO examDTO);

    void saveExam(SaveExamDTO savExamDTO);

    void delExam(Long id);

    SaveExamDTO getExamById(Long id);

    Long creatExamByRandom(CreatExamByRandomDTO creatExamByRandomDTO);


    Long getExamRemainingTime(Long examId,Long userId);


    List<NeedPeopleProblemVO> getNeedProblemList(Long examId);
}
